#ifndef __I2C_H
#define __I2C_H
#include"define.h"
	void I2C0_Init(void);
	void I2C0_writeNbyte(uint16 t);
//	void I2C0_ReadNbyte(void);
  void I2C0_slave_config(void);
	void IIC_Send_Byte(uint8 txd);
	void WriteOneByte(uint16 WriteAddr,uint8 DataToWrite);
  void AT24CXX_Write(uint16 WriteAddr,uint8 *pBuffer,uint32 NumToWrite);
//	void AT24CXX_Read(uint32 ReadAddr,uint8 *pBuffer,uint16 NumToRead);
	uint8 I2C0_ReadNbyte(uint16 ReadAddr);
	
uint8 IIC_Read_Byte();
uint8 AT24CXX_ReadOneByte(uint16 ReadAddr)	;
void AT24CXX_Read(uint16 ReadAddr,uint8 *pBuffer,uint32 NumToRead);
void Page_Write(uint16 WriteAddr,uint8 *pBuffer,uint32 NumToWrite);	
void AT24CXX_WriteLenByte(uint16 WriteAddr,uint32 DataToWrite,uint8 Len);



void Eeprom_Page_Write(uint16 WriteAddr,uint8 *pBuffer,uint32 NumToWrite);
#endif

